package com.atguigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Name: MyComputer
 * @ClassName Carousel
 * @Description:
 * @date 2023/5/19 10:16
 */
@Data
public class Carousel implements Serializable {

    public static final Long serialVersion = 1L;

    @TableId(value = "carousel_id" , type = IdType.AUTO)
    @JsonProperty("carousel_id")
    private Integer carouselId;

    @TableField("img_path")
    private String imgPath;

    private String describes;

    @JsonProperty("product_id")
    private Integer productId;

    private Integer priority;

}
